package com.tenglong.user.pojo;

import java.util.ArrayList;
import java.util.List;

public class UserExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public UserExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("id like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("id not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andUserNameIsNull() {
            addCriterion("user_name is null");
            return (Criteria) this;
        }

        public Criteria andUserNameIsNotNull() {
            addCriterion("user_name is not null");
            return (Criteria) this;
        }

        public Criteria andUserNameEqualTo(String value) {
            addCriterion("user_name =", value, "userName");
            return (Criteria) this;
        }

        public Criteria andUserNameNotEqualTo(String value) {
            addCriterion("user_name <>", value, "userName");
            return (Criteria) this;
        }

        public Criteria andUserNameGreaterThan(String value) {
            addCriterion("user_name >", value, "userName");
            return (Criteria) this;
        }

        public Criteria andUserNameGreaterThanOrEqualTo(String value) {
            addCriterion("user_name >=", value, "userName");
            return (Criteria) this;
        }

        public Criteria andUserNameLessThan(String value) {
            addCriterion("user_name <", value, "userName");
            return (Criteria) this;
        }

        public Criteria andUserNameLessThanOrEqualTo(String value) {
            addCriterion("user_name <=", value, "userName");
            return (Criteria) this;
        }

        public Criteria andUserNameLike(String value) {
            addCriterion("user_name like", value, "userName");
            return (Criteria) this;
        }

        public Criteria andUserNameNotLike(String value) {
            addCriterion("user_name not like", value, "userName");
            return (Criteria) this;
        }

        public Criteria andUserNameIn(List<String> values) {
            addCriterion("user_name in", values, "userName");
            return (Criteria) this;
        }

        public Criteria andUserNameNotIn(List<String> values) {
            addCriterion("user_name not in", values, "userName");
            return (Criteria) this;
        }

        public Criteria andUserNameBetween(String value1, String value2) {
            addCriterion("user_name between", value1, value2, "userName");
            return (Criteria) this;
        }

        public Criteria andUserNameNotBetween(String value1, String value2) {
            addCriterion("user_name not between", value1, value2, "userName");
            return (Criteria) this;
        }

        public Criteria andUserPhoneIsNull() {
            addCriterion("user_phone is null");
            return (Criteria) this;
        }

        public Criteria andUserPhoneIsNotNull() {
            addCriterion("user_phone is not null");
            return (Criteria) this;
        }

        public Criteria andUserPhoneEqualTo(String value) {
            addCriterion("user_phone =", value, "userPhone");
            return (Criteria) this;
        }

        public Criteria andUserPhoneNotEqualTo(String value) {
            addCriterion("user_phone <>", value, "userPhone");
            return (Criteria) this;
        }

        public Criteria andUserPhoneGreaterThan(String value) {
            addCriterion("user_phone >", value, "userPhone");
            return (Criteria) this;
        }

        public Criteria andUserPhoneGreaterThanOrEqualTo(String value) {
            addCriterion("user_phone >=", value, "userPhone");
            return (Criteria) this;
        }

        public Criteria andUserPhoneLessThan(String value) {
            addCriterion("user_phone <", value, "userPhone");
            return (Criteria) this;
        }

        public Criteria andUserPhoneLessThanOrEqualTo(String value) {
            addCriterion("user_phone <=", value, "userPhone");
            return (Criteria) this;
        }

        public Criteria andUserPhoneLike(String value) {
            addCriterion("user_phone like", value, "userPhone");
            return (Criteria) this;
        }

        public Criteria andUserPhoneNotLike(String value) {
            addCriterion("user_phone not like", value, "userPhone");
            return (Criteria) this;
        }

        public Criteria andUserPhoneIn(List<String> values) {
            addCriterion("user_phone in", values, "userPhone");
            return (Criteria) this;
        }

        public Criteria andUserPhoneNotIn(List<String> values) {
            addCriterion("user_phone not in", values, "userPhone");
            return (Criteria) this;
        }

        public Criteria andUserPhoneBetween(String value1, String value2) {
            addCriterion("user_phone between", value1, value2, "userPhone");
            return (Criteria) this;
        }

        public Criteria andUserPhoneNotBetween(String value1, String value2) {
            addCriterion("user_phone not between", value1, value2, "userPhone");
            return (Criteria) this;
        }

        public Criteria andUserCarNoIsNull() {
            addCriterion("user_car_no is null");
            return (Criteria) this;
        }

        public Criteria andUserCarNoIsNotNull() {
            addCriterion("user_car_no is not null");
            return (Criteria) this;
        }

        public Criteria andUserCarNoEqualTo(String value) {
            addCriterion("user_car_no =", value, "userCarNo");
            return (Criteria) this;
        }

        public Criteria andUserCarNoNotEqualTo(String value) {
            addCriterion("user_car_no <>", value, "userCarNo");
            return (Criteria) this;
        }

        public Criteria andUserCarNoGreaterThan(String value) {
            addCriterion("user_car_no >", value, "userCarNo");
            return (Criteria) this;
        }

        public Criteria andUserCarNoGreaterThanOrEqualTo(String value) {
            addCriterion("user_car_no >=", value, "userCarNo");
            return (Criteria) this;
        }

        public Criteria andUserCarNoLessThan(String value) {
            addCriterion("user_car_no <", value, "userCarNo");
            return (Criteria) this;
        }

        public Criteria andUserCarNoLessThanOrEqualTo(String value) {
            addCriterion("user_car_no <=", value, "userCarNo");
            return (Criteria) this;
        }

        public Criteria andUserCarNoLike(String value) {
            addCriterion("user_car_no like", value, "userCarNo");
            return (Criteria) this;
        }

        public Criteria andUserCarNoNotLike(String value) {
            addCriterion("user_car_no not like", value, "userCarNo");
            return (Criteria) this;
        }

        public Criteria andUserCarNoIn(List<String> values) {
            addCriterion("user_car_no in", values, "userCarNo");
            return (Criteria) this;
        }

        public Criteria andUserCarNoNotIn(List<String> values) {
            addCriterion("user_car_no not in", values, "userCarNo");
            return (Criteria) this;
        }

        public Criteria andUserCarNoBetween(String value1, String value2) {
            addCriterion("user_car_no between", value1, value2, "userCarNo");
            return (Criteria) this;
        }

        public Criteria andUserCarNoNotBetween(String value1, String value2) {
            addCriterion("user_car_no not between", value1, value2, "userCarNo");
            return (Criteria) this;
        }

        public Criteria andUserKmIsNull() {
            addCriterion("user_km is null");
            return (Criteria) this;
        }

        public Criteria andUserKmIsNotNull() {
            addCriterion("user_km is not null");
            return (Criteria) this;
        }

        public Criteria andUserKmEqualTo(String value) {
            addCriterion("user_km =", value, "userKm");
            return (Criteria) this;
        }

        public Criteria andUserKmNotEqualTo(String value) {
            addCriterion("user_km <>", value, "userKm");
            return (Criteria) this;
        }

        public Criteria andUserKmGreaterThan(String value) {
            addCriterion("user_km >", value, "userKm");
            return (Criteria) this;
        }

        public Criteria andUserKmGreaterThanOrEqualTo(String value) {
            addCriterion("user_km >=", value, "userKm");
            return (Criteria) this;
        }

        public Criteria andUserKmLessThan(String value) {
            addCriterion("user_km <", value, "userKm");
            return (Criteria) this;
        }

        public Criteria andUserKmLessThanOrEqualTo(String value) {
            addCriterion("user_km <=", value, "userKm");
            return (Criteria) this;
        }

        public Criteria andUserKmLike(String value) {
            addCriterion("user_km like", value, "userKm");
            return (Criteria) this;
        }

        public Criteria andUserKmNotLike(String value) {
            addCriterion("user_km not like", value, "userKm");
            return (Criteria) this;
        }

        public Criteria andUserKmIn(List<String> values) {
            addCriterion("user_km in", values, "userKm");
            return (Criteria) this;
        }

        public Criteria andUserKmNotIn(List<String> values) {
            addCriterion("user_km not in", values, "userKm");
            return (Criteria) this;
        }

        public Criteria andUserKmBetween(String value1, String value2) {
            addCriterion("user_km between", value1, value2, "userKm");
            return (Criteria) this;
        }

        public Criteria andUserKmNotBetween(String value1, String value2) {
            addCriterion("user_km not between", value1, value2, "userKm");
            return (Criteria) this;
        }

        public Criteria andUserBrandIsNull() {
            addCriterion("user_brand is null");
            return (Criteria) this;
        }

        public Criteria andUserBrandIsNotNull() {
            addCriterion("user_brand is not null");
            return (Criteria) this;
        }

        public Criteria andUserBrandEqualTo(String value) {
            addCriterion("user_brand =", value, "userBrand");
            return (Criteria) this;
        }

        public Criteria andUserBrandNotEqualTo(String value) {
            addCriterion("user_brand <>", value, "userBrand");
            return (Criteria) this;
        }

        public Criteria andUserBrandGreaterThan(String value) {
            addCriterion("user_brand >", value, "userBrand");
            return (Criteria) this;
        }

        public Criteria andUserBrandGreaterThanOrEqualTo(String value) {
            addCriterion("user_brand >=", value, "userBrand");
            return (Criteria) this;
        }

        public Criteria andUserBrandLessThan(String value) {
            addCriterion("user_brand <", value, "userBrand");
            return (Criteria) this;
        }

        public Criteria andUserBrandLessThanOrEqualTo(String value) {
            addCriterion("user_brand <=", value, "userBrand");
            return (Criteria) this;
        }

        public Criteria andUserBrandLike(String value) {
            addCriterion("user_brand like", value, "userBrand");
            return (Criteria) this;
        }

        public Criteria andUserBrandNotLike(String value) {
            addCriterion("user_brand not like", value, "userBrand");
            return (Criteria) this;
        }

        public Criteria andUserBrandIn(List<String> values) {
            addCriterion("user_brand in", values, "userBrand");
            return (Criteria) this;
        }

        public Criteria andUserBrandNotIn(List<String> values) {
            addCriterion("user_brand not in", values, "userBrand");
            return (Criteria) this;
        }

        public Criteria andUserBrandBetween(String value1, String value2) {
            addCriterion("user_brand between", value1, value2, "userBrand");
            return (Criteria) this;
        }

        public Criteria andUserBrandNotBetween(String value1, String value2) {
            addCriterion("user_brand not between", value1, value2, "userBrand");
            return (Criteria) this;
        }

        public Criteria andUserModulsIsNull() {
            addCriterion("user_moduls is null");
            return (Criteria) this;
        }

        public Criteria andUserModulsIsNotNull() {
            addCriterion("user_moduls is not null");
            return (Criteria) this;
        }

        public Criteria andUserModulsEqualTo(String value) {
            addCriterion("user_moduls =", value, "userModuls");
            return (Criteria) this;
        }

        public Criteria andUserModulsNotEqualTo(String value) {
            addCriterion("user_moduls <>", value, "userModuls");
            return (Criteria) this;
        }

        public Criteria andUserModulsGreaterThan(String value) {
            addCriterion("user_moduls >", value, "userModuls");
            return (Criteria) this;
        }

        public Criteria andUserModulsGreaterThanOrEqualTo(String value) {
            addCriterion("user_moduls >=", value, "userModuls");
            return (Criteria) this;
        }

        public Criteria andUserModulsLessThan(String value) {
            addCriterion("user_moduls <", value, "userModuls");
            return (Criteria) this;
        }

        public Criteria andUserModulsLessThanOrEqualTo(String value) {
            addCriterion("user_moduls <=", value, "userModuls");
            return (Criteria) this;
        }

        public Criteria andUserModulsLike(String value) {
            addCriterion("user_moduls like", value, "userModuls");
            return (Criteria) this;
        }

        public Criteria andUserModulsNotLike(String value) {
            addCriterion("user_moduls not like", value, "userModuls");
            return (Criteria) this;
        }

        public Criteria andUserModulsIn(List<String> values) {
            addCriterion("user_moduls in", values, "userModuls");
            return (Criteria) this;
        }

        public Criteria andUserModulsNotIn(List<String> values) {
            addCriterion("user_moduls not in", values, "userModuls");
            return (Criteria) this;
        }

        public Criteria andUserModulsBetween(String value1, String value2) {
            addCriterion("user_moduls between", value1, value2, "userModuls");
            return (Criteria) this;
        }

        public Criteria andUserModulsNotBetween(String value1, String value2) {
            addCriterion("user_moduls not between", value1, value2, "userModuls");
            return (Criteria) this;
        }

        public Criteria andUserTimeIsNull() {
            addCriterion("user_time is null");
            return (Criteria) this;
        }

        public Criteria andUserTimeIsNotNull() {
            addCriterion("user_time is not null");
            return (Criteria) this;
        }

        public Criteria andUserTimeEqualTo(String value) {
            addCriterion("user_time =", value, "userTime");
            return (Criteria) this;
        }

        public Criteria andUserTimeNotEqualTo(String value) {
            addCriterion("user_time <>", value, "userTime");
            return (Criteria) this;
        }

        public Criteria andUserTimeGreaterThan(String value) {
            addCriterion("user_time >", value, "userTime");
            return (Criteria) this;
        }

        public Criteria andUserTimeGreaterThanOrEqualTo(String value) {
            addCriterion("user_time >=", value, "userTime");
            return (Criteria) this;
        }

        public Criteria andUserTimeLessThan(String value) {
            addCriterion("user_time <", value, "userTime");
            return (Criteria) this;
        }

        public Criteria andUserTimeLessThanOrEqualTo(String value) {
            addCriterion("user_time <=", value, "userTime");
            return (Criteria) this;
        }

        public Criteria andUserTimeLike(String value) {
            addCriterion("user_time like", value, "userTime");
            return (Criteria) this;
        }

        public Criteria andUserTimeNotLike(String value) {
            addCriterion("user_time not like", value, "userTime");
            return (Criteria) this;
        }

        public Criteria andUserTimeIn(List<String> values) {
            addCriterion("user_time in", values, "userTime");
            return (Criteria) this;
        }

        public Criteria andUserTimeNotIn(List<String> values) {
            addCriterion("user_time not in", values, "userTime");
            return (Criteria) this;
        }

        public Criteria andUserTimeBetween(String value1, String value2) {
            addCriterion("user_time between", value1, value2, "userTime");
            return (Criteria) this;
        }

        public Criteria andUserTimeNotBetween(String value1, String value2) {
            addCriterion("user_time not between", value1, value2, "userTime");
            return (Criteria) this;
        }

        public Criteria andUserCreatedIsNull() {
            addCriterion("user_created is null");
            return (Criteria) this;
        }

        public Criteria andUserCreatedIsNotNull() {
            addCriterion("user_created is not null");
            return (Criteria) this;
        }

        public Criteria andUserCreatedEqualTo(String value) {
            addCriterion("user_created =", value, "userCreated");
            return (Criteria) this;
        }

        public Criteria andUserCreatedNotEqualTo(String value) {
            addCriterion("user_created <>", value, "userCreated");
            return (Criteria) this;
        }

        public Criteria andUserCreatedGreaterThan(String value) {
            addCriterion("user_created >", value, "userCreated");
            return (Criteria) this;
        }

        public Criteria andUserCreatedGreaterThanOrEqualTo(String value) {
            addCriterion("user_created >=", value, "userCreated");
            return (Criteria) this;
        }

        public Criteria andUserCreatedLessThan(String value) {
            addCriterion("user_created <", value, "userCreated");
            return (Criteria) this;
        }

        public Criteria andUserCreatedLessThanOrEqualTo(String value) {
            addCriterion("user_created <=", value, "userCreated");
            return (Criteria) this;
        }

        public Criteria andUserCreatedLike(String value) {
            addCriterion("user_created like", value, "userCreated");
            return (Criteria) this;
        }

        public Criteria andUserCreatedNotLike(String value) {
            addCriterion("user_created not like", value, "userCreated");
            return (Criteria) this;
        }

        public Criteria andUserCreatedIn(List<String> values) {
            addCriterion("user_created in", values, "userCreated");
            return (Criteria) this;
        }

        public Criteria andUserCreatedNotIn(List<String> values) {
            addCriterion("user_created not in", values, "userCreated");
            return (Criteria) this;
        }

        public Criteria andUserCreatedBetween(String value1, String value2) {
            addCriterion("user_created between", value1, value2, "userCreated");
            return (Criteria) this;
        }

        public Criteria andUserCreatedNotBetween(String value1, String value2) {
            addCriterion("user_created not between", value1, value2, "userCreated");
            return (Criteria) this;
        }

        public Criteria andUserUpdatedIsNull() {
            addCriterion("user_updated is null");
            return (Criteria) this;
        }

        public Criteria andUserUpdatedIsNotNull() {
            addCriterion("user_updated is not null");
            return (Criteria) this;
        }

        public Criteria andUserUpdatedEqualTo(String value) {
            addCriterion("user_updated =", value, "userUpdated");
            return (Criteria) this;
        }

        public Criteria andUserUpdatedNotEqualTo(String value) {
            addCriterion("user_updated <>", value, "userUpdated");
            return (Criteria) this;
        }

        public Criteria andUserUpdatedGreaterThan(String value) {
            addCriterion("user_updated >", value, "userUpdated");
            return (Criteria) this;
        }

        public Criteria andUserUpdatedGreaterThanOrEqualTo(String value) {
            addCriterion("user_updated >=", value, "userUpdated");
            return (Criteria) this;
        }

        public Criteria andUserUpdatedLessThan(String value) {
            addCriterion("user_updated <", value, "userUpdated");
            return (Criteria) this;
        }

        public Criteria andUserUpdatedLessThanOrEqualTo(String value) {
            addCriterion("user_updated <=", value, "userUpdated");
            return (Criteria) this;
        }

        public Criteria andUserUpdatedLike(String value) {
            addCriterion("user_updated like", value, "userUpdated");
            return (Criteria) this;
        }

        public Criteria andUserUpdatedNotLike(String value) {
            addCriterion("user_updated not like", value, "userUpdated");
            return (Criteria) this;
        }

        public Criteria andUserUpdatedIn(List<String> values) {
            addCriterion("user_updated in", values, "userUpdated");
            return (Criteria) this;
        }

        public Criteria andUserUpdatedNotIn(List<String> values) {
            addCriterion("user_updated not in", values, "userUpdated");
            return (Criteria) this;
        }

        public Criteria andUserUpdatedBetween(String value1, String value2) {
            addCriterion("user_updated between", value1, value2, "userUpdated");
            return (Criteria) this;
        }

        public Criteria andUserUpdatedNotBetween(String value1, String value2) {
            addCriterion("user_updated not between", value1, value2, "userUpdated");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}